package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SignStore;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface SignStoreMapper {

    int deleteByPrimaryKey(Long id);

    //添加一条商品信息
    int insert(SignStore record);

    SignStore selectByPrimaryKey(Long id);

    List<SignStore> selectAll();

    int updateByPrimaryKey(SignStore record);

    //分页
    List<SignStore> selectForList(QueryObject qo);

    //根据商品id查出商品积分
    int selectByStoreId(Long id);

    //根据用户查出兑换商品
    List<SignStore> selectByUserId(Long userId);
}